package merchant

import (
	"crmeb-common/global"
	"math/big"
)

// Merchant 商户表
type Merchant struct {
	global.BaseModel
	Name string `json:"name" gorm:"column=name;comment:商户名称"`

	CategoryId int32 `json:"categoryId" gorm:"column=category_id;comment:商户分类ID"`

	TypeId int32 `json:"typeId" gorm:"column=type_id;comment:商户类型ID"`

	RealName string `json:"realName" gorm:"column=real_name;comment:商户姓名"`

	Email string `json:"email" gorm:"column=email;comment:商户邮箱"`

	Phone string `json:"phone" gorm:"column=phone;comment:商户手机号"`

	HandlingFee int32 `json:"handlingFee" gorm:"column=handling_fee;comment:手续费(%)"`

	Keywords string `json:"keywords" gorm:"column=keywords;comment:商户关键字"`

	Province string `json:"province" gorm:"column=province;comment:省"`

	City string `json:"city" gorm:"column=city;comment:市"`

	District string `json:"district" gorm:"column=district;comment:区"`

	AddressDetail string `json:"addressDetail" gorm:"column=address_detail;comment:商户详细地址"`

	Latitude string `json:"latitude" gorm:"column=latitude;comment:纬度"`

	Longitude string `json:"longitude" gorm:"column=longitude;comment:经度"`

	IsSelf bool `json:"isSelf" gorm:"column=is_self;comment:是否自营：0-自营，1-非自营"`

	IsRecommend bool `json:"isRecommend" gorm:"column=is_recommend;comment:是否推荐:0-不推荐，1-推荐"`

	IsSwitch bool `json:"isSwitch" gorm:"column=is_switch;comment:商户开关:0-关闭，1-开启"`

	ProductSwitch bool `json:"productSwitch" gorm:"column=product_switch;comment:商品审核开关:0-关闭，1-开启"`

	IsTakeTheir bool `json:"isTakeTheir" gorm:"column=is_take_their;comment:自提开关:0-关闭，1-开启"`

	Remark string `json:"remark" gorm:"column=remark;comment:备注"`

	QualificationPicture string `json:"qualificationPicture" gorm:"column=qualification_picture;comment:资质图片"`

	BackImage string `json:"backImage" gorm:"column=back_image;comment:商户背景图"`

	Avatar string `json:"avatar" gorm:"column=avatar;comment:商户头像"`

	RectangleLogo string `json:"rectangleLogo" gorm:"column=rectangle_logo;comment:商户logo（横）"`

	CoverImage string `json:"coverImage" gorm:"column=cover_image;comment:商户封面图"`

	StreetBackImage string `json:"streetBackImage" gorm:"column=street_back_image;comment:商户街背景图"`

	Intro string `json:"intro" gorm:"column=intro;comment:商户简介"`

	CopyProductNum int32 `json:"copyProductNum" gorm:"column=copy_product_num;comment:复制商品数量"`

	Balance big.Float `json:"balance" gorm:"column=balance;comment:商户余额"`

	StarLevel int32 `json:"starLevel" gorm:"column=star_level;comment:商户星级1-5"`

	PcBanner string `json:"pcBanner" gorm:"column=pc_banner;comment:pcBanner"`

	PcBackImage string `json:"pcBackImage" gorm:"column=pc_back_image;comment:pc背景图"`

	Sort int32 `json:"sort" gorm:"column=sort;comment:排序"`

	CreateType string `json:"createType" gorm:"column=create_type;comment:商户创建类型：admin-管理员创建，apply-商户入驻申请"`

	CreateId int32 `json:"createId" gorm:"column=create_id;comment:创建商户管理员ID"`

	AdminId int32 `json:"adminId" gorm:"column=admin_id;comment:关联管理账号ID"`

	ReceiptPrintingSwitch int32 `json:"receiptPrintingSwitch" gorm:"column=receipt_printing_switch;comment:小票打印开关：0关闭，1=手动打印，2=自动打印，3=自动和手动"`

	PcLogo string `json:"pcLogo" gorm:"column=pc_logo;comment:商户PCLogo"`

	PcGoodStoreCoverImage string `json:"pcGoodStoreCoverImage" gorm:"column=pc_good_store_cover_image;comment:商户PC品牌好店封面图片"`
}
